home *** CD-ROM | disk | FTP | other *** search
- drag_coeff 0.01
- gravity 2.2
-
- #=====================================================
- # Weapons ODL
-
- ;GREEN ENERGY LASER hitpoints 30
- ;GREEN LASER hitpoints 32
- ;BLUE LASER hitpoints 16
- ;RED LASER hitpoints 24
- ;PURPLE LASER hitpoints 12
-
- ;PLASMA BOLT 1 hitpoints 30
- ;PLASMA BOLT 2 hitpoints 25
- ;PLASMA BOLT 3 hitpoints 15
- ;PLASMA BOLT 4 hitpoints 20
-
- ;ROCKET 1 hitpoints 150
- ;ROCKET 2 hitpoints 500
- ;GUIDED MISSILE hitpoints 120
- ;TRACER SHOT 1 hitpoints 110
-
- ;BOMB 1 hitpoints 500
- ;DESIGNATOR hitpoints 0
- ;FOAM hitpoints 0
-
- ;ENERGY 1 hitpoints 150
- ;ENERGY 2 hitpoints 50
-
- ;BIG SHELL hitpoints 32
- #=====================================================
-
- set_inert "Lbase1"
- set_inert "Lbase2"
- set_inert "Lbase3"
- set_inert "Lbase4"
- set_inert "GPa"
- set_inert "GPb"
- set_inert "GPc"
- set_inert "GPd"
- set_inert "GPe"
- set_inert "GPf"
-
- create hero "plfight"
- label "P1hero"
- position 0 -100 0 relative to "replen1"
- forward -0.5 0 -0.8 up 0 1 0
- armed_with "RED LASER" rate 3
- secondary_armed_with "ENERGY 1" rate 24 rounds 20
- task
- wait_until flag 0 set
- playercontrols
- position 0 -100 0 relative to "replen1"
- end
-
- create "heavylaser"
- label "P3hero"
- position 43579 -1430 42541
- forward -0.8 0 0.5 up 0 1 0
- armed_with "GREEN LASER" rate 1
- inert
-
- create "rack"
- position 44670 -1415 42136
- forward 0.5 0 0.8 up 0 1 0
- armed_with "GUIDED MISSILE" rate 32
- task
- slave_to "P3hero"
- end
-
- create "heavylaser"
- label "P6hero"
- position 31853 -132 43076
- forward 0.5 0 -0.8 up 0 1 0
- armed_with "GREEN LASER" rate 1
- inert
-
- create "rack"
- position 32517 -117 43741
- forward 0.5 0 0.8 up 0 1 0
- armed_with "GUIDED MISSILE" rate 32
- task
- slave_to "P6hero"
- end
-
- create "heavylaser"
- label "P9hero"
- position 35273.8 -1780 12904.8
- forward 0 0 1 up 0 1 0
- armed_with "GREEN LASER" rate 1
- inert
-
- create "rack"
- position 0 -115 0 relative to "GPf"
- forward 0 0 1 up 0 1 0
- armed_with "GUIDED MISSILE" rate 32
- task
- slave_to "P9hero"
- end
-
- create "shuttle"
- label "shuttle1"
- mission_critical
- position 30852 -1961 38089
- forward -1 0 0 up 0 1 0
- mission_critical
-
- create "shuttle"
- label "shuttle2"
- mission_critical
- position 52079 -1961 50399
- forward 0 0 1 up 0 1 0
- mission_critical
- inert
-
- create "shuttle"
- label "shuttle3"
- mission_critical
- position 30280 -1961 48756
- forward 1 0 0 up 0 1 0
- mission_critical
- inert
-
- create "shuttle"
- label "shuttle4"
- mission_critical
- position 47603 -1961 34739
- forward 1 0 0 up 0 1 0
- mission_critical
- inert
-
- setsfx "shuttle1" off
- setsfx "shuttle2" off
- setsfx "shuttle3" off
- setsfx "shuttle4" off
-
- set_inert "vab"
-
- #===================================
- # PHASE 1
- #===================================
-
- phasestart
-
- #....................................................................
- phasemessage 76 60
- play_speech "defend shuttle"
- #....................................................................
- playcdslow
-
- clear_flag all
- set_flag 11
-
- camera_task
- hud off
- cam_pos 600 -200 -600 attached_to "hero"
- cam_focus "hero"
- dolly 0
- set_flag 0
-
- cam_goto -600 -200 -600
- wait_until distance_between "hero" and "replen1" > 500
-
- cam_mode cockpit
- end
-
- collision "shuttle1" as "hero"
-
- procedure "P1a"
-
- wait_until number_of "aair"<4
- wait_until flag 11 set
-
- create "lfighter"
- position 100 -4700 -17000 relative toxz "shuttle1"
- towards "hero"
- armed_with "PLASMA BOLT 1" rate 16
- task
- do
- goto 35795.3 -1500 33421.8
- shoot "hero"
- goto 31381.1 -4900 39794.2
- goto 27251.1 -1100 39144.8
- shoot "hero"
- goto 27506.5 -2800 35668.7
- forever
-
- end
-
- clear_flag 11
- set_flag 12
- end_procedure terminate after 3 loops
-
- procedure "P1b"
-
- wait_until number_of "aair"<4
- wait_until flag 12 set
-
- create "lfighter"
- position 500 -3500 -17000 relative toxz "shuttle1"
- towards "hero"
- armed_with "PLASMA BOLT 3" rate 132
- task
- do
- goto 27506.5 -1102.94 35668.7
- goto 27251.1 -2811.08 39144.8
- shoot "shuttle1"
- goto 31381.1 -1453.35 39794.2
- shoot "hero"
- goto 35795.3 -4969.24 33421.8
- shoot "shuttle1"
- until "shuttle1" destroyed
- end
-
- clear_flag 12
- set_flag 13
-
- end_procedure terminate after 3 loops
-
- procedure "P1c"
-
- wait_until number_of "aair"<4
- wait_until flag 13 set
-
- create "lfighter"
- position 1800 -3700 -17000 relative toxz "shuttle1"
- towards "hero"
- armed_with "PLASMA BOLT 1" rate 132
- task
- do
- goto 35795.3 -1500 33421.8
- shoot "shuttle1"
- goto 31381.1 -4900 39794.2
- shoot "hero" bomb
- goto 27251.1 -1100 39144.8
- shoot "shuttle1"
- goto 27506.5 -2800 35668.7
- until "shuttle1" destroyed
- end
-
- clear_flag 13
- set_flag 14
-
-
- end_procedure terminate after 3 loops
-
- procedure "P1d"
-
- wait_until number_of "aair"<4
- wait_until flag 14 set
-
- create "lfighter"
- position -1500 -4200 -17500 relative toxz "shuttle1"
- towards "hero"
- armed_with "PLASMA BOLT 1" rate 16
- task
- do
- goto 27506.5 -1102.94 35668.7
- shoot "hero"
- goto 27251.1 -2811.08 39144.8
- shoot "hero"
- goto 31381.1 -1453.35 39794.2
- shoot "hero"
- goto 35795.3 -4969.24 33421.8
- forever
- end
-
- clear_flag 14
- set_flag 11
- pause 100
-
- end_procedure terminate after 3 loops
-
- wait_until proc "P1a" terminated
- wait_until proc "P1b" terminated
- wait_until proc "P1c" terminated
- wait_until proc "P1d" terminated
-
- wait_until number_of "aair" = 0
-
-
- #....................................................................
- phasemessage 31 60
- play_speech "incoming fire"
- #....................................................................
-
- procedure "P1a"
-
- create "lfighter"
- position 500 -4200 -17500 relative toxz "shuttle1"
- towards "hero"
- armed_with "PLASMA BOLT 1" rate 16
- task
- do
- goto 27506.5 -1102.94 35668.7
- shoot "hero"
- goto 27251.1 -2811.08 39144.8
- shoot "hero"
- goto 31381.1 -1453.35 39794.2
- shoot "hero"
- goto 35795.3 -4969.24 33421.8
- forever
- end
-
- pause 50
-
- end_procedure terminate after 5 loops
-
- wait_until proc "P1a" terminated
- wait_until number_of "aair"=0
-
-
-
- set_inert "P1hero"
-
-
- #....................................................................
- phasemessage 10 60
- play_speech "phase complete"
- #....................................................................
-
- hud off
- camera
- attached_to "hero"
- position 600 -300 -600
- pointing_at "hero"
- dolly 1
-
- pause 40
-
-
- ;-------------------------------------------------------
- ;PHASE 2
- ;-------------------------------------------------------
-
- phasestart
- clear_flag all
-
- #....................................................................
- phasemessage 55 60
- play_speech "destroy all alien craft"
- #....................................................................
-
- set_inert "shuttle1"
-
- create "helicopter"
- label "P2heli"
- position 0 -150 0 relative to "replen2"
- forward -0.5 0 -0.8 up 0 1 0
- armed_with "PURPLE LASER" rate 2
- secondary_armed_with "GUIDED MISSILE" rate 64 rounds 20
-
- switch_hero "P2heli"
- task
- wait_until flag 0 set
- playercontrols
- break_task_if flag 10 set
- position 0 -150 0 relative to "replen2"
- end
-
- camera_task
- hud off
- cam_pos 600 -200 -600 attached_to "hero"
- cam_focus "hero"
- dolly 0
- set_flag 0
-
- cam_goto -600 -200 -600
- wait_until distance_between "hero" and "replen2" > 500
-
- cam_mode cockpit
- end
-
- pause 20
- kill group "aair"
-
- camera last cockpit
-
- mission_critical "Sshuttle"
-
- create "atank"
- label "P2ta"
- position 47700 on ground 59580
- forward -1 0 0 up 0 1 0
- armed_with "RED LASER" rate 48
- task
- do
- patrol_towards
- point 40523 on ground 59985
- point 40384 on ground 28305
- point 41424 on ground 33675
- point 41475 on ground 56881
-
- if distance_between "Sshuttle" and me <8000
- shoot "Sshuttle"
- else
- shoot
- forever
- end
-
- create "atank"
- label "P2tb"
- position 45700 on ground 59580
- forward -1 0 0 up 0 1 0
- armed_with "RED LASER" rate 48
- task
- do
- patrol_towards
- point 40523 on ground 59985
- point 40384 on ground 28305
- point 41424 on ground 33675
- point 41475 on ground 56881
-
- if distance_between "Sshuttle" and me <8000
- shoot "Sshuttle"
- else
- shoot
-
- forever
- end
-
-
- create "atank"
- label "P2tc"
- position 43700 on ground 59580
- forward -1 0 0 up 0 1 0
- armed_with "RED LASER" rate 48
- task
- do
- patrol_towards
- point 40523 on ground 59985
- point 40384 on ground 28305
- point 41424 on ground 33675
- point 41475 on ground 56881
-
- if distance_between "Sshuttle" and me <8000
- shoot "Sshuttle"
- else
- shoot
-
- forever
- end
-
- create "atank"
- label "P2td"
- position 41700 on ground 59580
- forward -1 0 0 up 0 1 0
- armed_with "RED LASER" rate 48
- task
- do
- patrol_towards
- point 40523 on ground 59985
- point 40384 on ground 28305
- point 41424 on ground 33675
- point 41475 on ground 56881
-
- if distance_between "Sshuttle" and me <10000
- shoot "Sshuttle"
- else
- shoot
-
- forever
- end
-
-
- create "hfighter"
- position -17000 -3500 0 relative to "P2tb"
- towards "hero"
- armed_with "PLASMA BOLT 3" rate 16
- task
- defend "P2ta"
- attack "hero"
- end
-
- create "hfighter"
- position 0 -3500 17000 relative to "P2td"
- towards "hero"
- armed_with "PLASMA BOLT 3" rate 16
- task
- defend "P2td"
- attack "hero"
- end
-
- procedure "P2a"
- wait_until number_of "aair"<2
- create "lfighter"
- position 500 -3300 15000 local to "hero"
- towards "hero"
- armed_with "RED LASER" rate 16
- task
- attack "hero"
- end
- pause 75
- end_procedure terminate after 4 loops
-
- wait_until distance_between "hero" and 35021 -122 20963 > 2000
- camera cockpit
-
-
- procedure "P2b"
- set_waypoint nearest "aland"
- end_procedure
-
-
- #....................................................................
- phasemessage 29 60
- play_speech "incoming alien tanks"
- #....................................................................
-
-
- wait_until number_of "aland"=0
- end_procedure "P2b"
- clear_waypoint
-
- wait_until proc "P2a" terminated
- wait_until number_of "fighters" = 0
- wait_until number_of "aair" = 0
-
- set_inert "P2heli"
-
- #....................................................................
- phasemessage 63 60
- play_speech "engage and destroy alien craft"
- #....................................................................
-
- procedure "P2a"
- wait_until number_of "aair"<2
- create "lfighter"
- position 500 -3300 15000 local to "hero"
- towards "hero"
- armed_with "RED LASER" rate 16
- task
- attack "hero"
- end
- pause 75
- end_procedure terminate after 4 loops
-
- wait_until proc "P2a" terminated
- wait_until number_of "aair" = 0
-
- #=========================
- #=======take off shuttle 1
- set_flag 10
- hud off
-
- camera
- position 31080 -3200 39790
- pointing_at "shuttle1"
- dolly 1
-
- set_operate "shuttle1" "brocket"
- setsfx "shuttle1" on
- pause 50
- #....................................................................
- phasemessage 22 60
- play_speech "5-4-3-2-1"
- #....................................................................
- set_task "shuttle1"
- goto 30852 -19000 38089
- end
-
- mission_uncritical "shuttle1"
- pause 250
-
-
- camera
- position 37918.1 -444 38493
- pointing_at 31184.3 -1500 38026
- dolly 0
-
- pause 250
- #....................................................................
- phasemessage 10 60
- play_speech "phase complete"
- #....................................................................
-
-
- pause 50
- kill "shuttle1"
-
- ;-------------------------------------------------------
- ;PHASE 3
- ;-------------------------------------------------------
- phasestart
- clear_flag all
-
- #....................................................................
- phasemessage 76 60
- play_speech "defend shuttle"
- #....................................................................
-
- set_volatile "shuttle2"
- collision "shuttle2" as "hero"
-
-
- switch_hero "P3hero"
- task
- wait_until flag 0 set
- playercontrols
- end
-
- hud off
- camera
- attached_to "hero"
- position 600 -300 -600
- pointing_at "hero"
- dolly 0
- pause 40
- set_flag 0
- camera cockpit
-
-
- ;-----------
- ;-----wave 1
-
- procedure "P3a"
- create "lfighter"
- position 33598.5 -975 43475.9
- towards "hero"
- armed_with "RED LASER" rate 4
- task
- goto 35055.6 -2355 43383.3
- shoot "hero"
- goto 40346.4 -815 42596.3
- shoot "hero"
- goto 42402.2 -2575 42465.6
- do
- goto 46530 -1820 45260
- shoot "shuttle2"
- goto 51849.3 -4935 48428.7
- goto 57336 -2385 54081.6
- shoot "shuttle2"
- goto 47118.4 -2545 53544.1
- forever
- end
-
- pause 50
- end_procedure terminate after 4 loops
-
- wait_until proc "P3a" terminated
- wait_until number_of "aair"<=1
-
-
- ;------------------------------------
- ;-----------I hope you dont see these
- create "atank"
- position 40521.5 on ground 25356.6
-
- towards "hero"
- armed_with "RED LASER" rate 1
- task
- goto 41084 on ground 34339
- goto 40971 on ground 45640
- goto 49070 on ground 45852
- end
-
-
- create "atank"
- position 40904 on ground 59258
- towards "hero"
- armed_with "RED LASER" rate 4
- task
- goto 41360 on ground 45680
- goto 47981 on ground 47362
- stop
- do
- shoot "shuttle2"
- until "shuttle2" destroyed
- end
-
-
- #....................................................................
- phasemessage 29 60
- play_speech "incoming alien tanks"
- #....................................................................
-
-
- ;-----------
- ;-----wave 2
-
- procedure "P3a"
- create "lfighter"
- position 45125.4 -1345.37 58910.3
-
- towards "hero"
- armed_with "RED LASER" rate 8
- task
- goto 49272.1 -1345.33 56080.5
- goto 47864.1 -3145.14 47779.8
- shoot "hero"
- attack "hero"
- end
-
- pause 100
- end_procedure terminate after 4 loops
-
- procedure "P3b"
- create "lfighter"
- position 43834.2 -1275 58445.7
-
-
- towards "hero"
- armed_with "RED LASER" rate 8
- task
- goto 40922.4 -1275 58057.9
- shoot "hero"
- attack "hero"
- end
-
- pause 100
- end_procedure terminate after 4 loops
-
-
- wait_until proc "P3a" terminated
- wait_until proc "P3b" terminated
- wait_until number_of "aair"=0
-
-
- ;-----------
- ;-----wave 3
-
- procedure "P3a"
- create "lfighter"
- position 43636.9 -315 35543.6
-
- towards "hero"
- armed_with "RED LASER" rate 4
- task
- goto 43653.4 -1375 36203.3
- goto 43180.9 -2315 40081.3
- shoot "hero"
- attack "hero"
- end
- pause 50
-
- end_procedure terminate after 4 loops
-
- wait_until proc "P3a" terminated
- wait_until number_of "aair"<=1
-
- ;-----------
- ;-----wave 4
-
- procedure "P3a"
- create "lfighter"
- position 51279.6 -645 42720.5
-
- towards "shuttle2"
- armed_with "RED LASER" rate 4
- task
- do
- goto 53733.6 -1285 47461.4
- shoot "shuttle2"
- goto 55690.5 -2045 54245.7
- goto 50195.2 -1685 54767.3
- goto 45946.6 -1785 46847.5
- shoot "hero"
-
- forever
- end
- pause 50
-
- end_procedure terminate after 4 loops
-
-
- wait_until proc "P3a" terminated
- wait_until number_of "aair"<=3
-
-
- create "bomber"
- label "P3bomb"
- position 26030.4 -3994 43725.3
- towards "shuttle2"
- armed_with "ENERGY 1" rate 1
- task
- do
- goto 38402.5 -4104 47904.7
- shoot
- goto 43687.3 -4104 53981.7
- shoot
- goto 54038.4 -4254 50721.1
- shoot
- goto 53934.9 -4254 44352.3
- shoot
- goto 48042.8 -4254 44208.1
- shoot
- forever
- end
-
- #....................................................................
- phasemessage 28 60
- play_speech "incoming alien bomber"
- #....................................................................
-
-
- wait_until number_of "bombers"=0
-
- #....................................................................
- phasemessage 10 60
- play_speech "phase complete"
- #....................................................................
-
-
- hud off
- camera
- attached_to "hero"
- position 600 -300 -600
- pointing_at "hero"
- dolly 1
- pause 40
-
- ;-------------------------------------------------------
- ;PHASE 8
- ;-------------------------------------------------------
-
-
-
- ;-------------------------------------------------------
- ;END OF SCENARIO
- ;-------------------------------------------------------
-